import mongoose from 'mongoose';
import config from '../config';

//设置默认连接
mongoose.connect(config.mongo_db_address);
mongoose.Promise = global.Promise;

export default mongoose;
